#ifndef _IAP_H_
#define _IAP_H_
#include "iap.h"
#include <stm32f10x.h>
#include "iap.h"
#include "crc16.h"
#include "lwip/debug.h"
#include "lwip/stats.h"
#include "lwip/tcp.h"
#include "stm32f10x.h"
#include "memp.h"
#include <stdio.h>
#include <string.h>
#include "netconf.h"
#include "tcpclient.h"

#define APP_START_ADDR             ((uint32_t)0x0800A000)// =40KB
#define APP_END_ADDR               ((uint32_t)0x0801b000)// app1=108kb
#define APP_Finsh_ADDR             ((uint32_t)0x08030000)
#define AUTO_START_Flag            ((uint32_t)0x08030002)
void TCP_Revice(struct tcp_pcb *pcb,uint8_t *data,uint16_t len);
void Check_IapFlag(void);

#endif


